Repository navigation
Career: a position that begins on a given day turns into the one in progress by itself - #765
Merged
Merged
Conversation
…rogress by itself `upcoming` is now `true` or a day (YYYY-MM-DD, in the month of `start`). From that day the role is the position in progress (an absent end meaning present). The pages are static files, so the day is read in the browser only, after hydration: the prerendered HTML and the first client render are the document as authored, and a test pins that nothing else on the page reads a clock. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ub8ohSguH8W9X1pXh6EF3b
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #763 ("Joining"). That flag had to be removed by hand once the owner had joined. The owner asked for the page to turn by itself ("this shouldn't require a data change, it's just a UI change depending on the current date").
role.upcomingis nowtrue(as before: until removed) or a dayYYYY-MM-DDthat falls instart(a real calendar day; leap days handled). Refused withend: present.truestays valid, so the published projection needs no change to keep working.Nov 2026 – Present, stay counted; an absentendmeanspresent, a datedendis kept./careerand/career.mdare prerendered static files, so a build-time date would freeze. The day is read in the browser only, after hydration (useHydrated()): the prerendered HTML and the first client render are the document as authored (Joining), so there is no hydration mismatch. OnlyroleState(role, today)(pure, the day is an argument) andlocalDay()(its only source) touch it; a test fails if the page, the head tags or the Markdown twin read a clock anywhere else. The Markdown twin saysStarts 2026-11-30(true on any day).docs/career-page.mdgets a section "The one use of the clock" (where, what it moves, which day, the known cost, and how to do the same for another time-relative fact);docs/api-contract.md.Known cost
For a visitor after the day, the first paint is the static
Joiningand it turns when the script hydrates (a stay length appears, so a line of the head moves). Before the day, or forupcoming: true, nothing moves. Not measured on a slow phone.Order
Merge this first (the web app's schema is strict), then the content PR in
BSoDium/Catalyst-content(setsupcoming: 2026-11-30on the NordVPN role), then thecontent/publishPR. Until then the publishedupcoming: truekeeps working.Checked
pnpm -r testpasses (schemas 135, web 2676, api 51, published 32, geodata 105), typecheck clean. In Chromium with demo content (a role begun in the past, one in 2099): without JavaScript both say Joining; with it the first turns into the role in progress, the second stays, no hydration warning. Not verified: Safari and iOS, print and forced colours, a slow connection.Tracking
No issue; not linked to one. I could not reach the "Open-source development" board from this session (GraphQL is blocked), so it still has to be added there with every property filled in.
Generated by Claude Code